<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>登录</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="/mobile/css/public.css">
    <link rel="stylesheet" href="/mobile/dist/css/sm.min.css">
    <link rel="stylesheet" href="/mobile/css/userCenter.css">
</head>
<body>
<div class="content">
    <header class="bar bar-nav">
        <h1 class="title">登录</h1>
    </header>
    <br><br>
    <div class="list-block">

        <ul>
            <!-- Text inputs -->

            <li>
                <div class="item-content">
                    <div class="item-media"><i class="icon icon-form-name"></i></div>
                    <div class="item-inner">
                        <div class="item-title label" style="width: 20%">帐号</div>
                        <div class="item-input">
                            <input type="text" id="username" placeholder="请输入登录帐号">
                        </div>
                    </div>
                </div>
            </li>
            <li>
                <div class="item-content">
                    <div class="item-media"><i class="icon icon-form-password"></i></div>
                    <div class="item-inner">
                        <div class="item-title label" style="width: 20%">密码</div>
                        <div class="item-input">
                            <input type="password" id="pass" placeholder="请输入密码" class="">
                        </div>
                    </div>
                </div>
            </li>
        </ul>
    </div>
    <div class="content-block">
        <div class="row">

            <div class="col-100"><a href="#" class="button button-big button-fill button-success" id="login">登录</a></div>
        </div>

    </div>
    <div class="bottom-info" style="text-align: center">

        <a href="reg.php"><span>没有帐号立即注册</span></a>
    </div>
<script src='http://cdn.bootcss.com/jquery/3.1.1/jquery.min.js'></script>
    <script src="/mobile/js/config.js"></script>
    <script src='/mobile/dist/js/sm.js'></script>
<script type="text/javascript">
    function tiaozhuan(){
        window.location.href = "/../index.php";
    }
    $("#login").click(function(){
        var username = $("#username").val();
        var pass = $("#pass").val();
        if(username == ''){
            $.alert('用户不能为空');
        }

    })
</script>
</body>
</html>